package com.example.chapter0703;

import androidx.appcompat.app.AppCompatActivity;

import android.os.Bundle;
import android.view.View;
import android.widget.TextView;

public class SecondActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_second);
        TextView fi = findViewById(R.id.tv_first);
        TextView se = findViewById(R.id.tv_second);
        String s1 = getIntent().getStringExtra("s1");
        String s2 = getIntent().getStringExtra(MainActivity.STRING_2);
        fi.setText(s1);
        se.setText(s2);
    }
}